package org.iabako.shared.iservice.support;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * Created by jose on 16/04/15.
 */
public interface PingServiceAsync {

    void ping(AsyncCallback<Void> async);

    public static final class Util {
        private static PingServiceAsync instance;

        public static final PingServiceAsync getInstance() {
            if (instance == null) {
                instance = GWT.create(PingService.class);
            }
            return instance;
        }
    }
}
